/*
*************************** C HEADER FILE ************************************

project   : General Template
filename  : INTERRUPT68K.H
version   : 2
date      : August 03, 2010

******************************************************************************

Copyright (c) 2003, P.K. van der Vlugt
All rights reserved.

******************************************************************************

VERSION HISTORY:
----------------------------
Version      : 1
Date         : August 02, 2010
Revised by   : P.K. van der Vlugt
Description  : Original version.

Version      : 2
Date         : August 03, 2010
Revised by   : P.K. van der Vlugt
Description  : * Changed input sampling time to 50 msec.
               * Added support for different CAN physical layers.
               * Added activation of the reference output.

******************************************************************************
*/

#ifndef  _INTERRUPT68K_INCLUDED
#define  _INTERRUPT68K_INCLUDED

/****************************************************************************/
/**                                                                        **/
/**                              MODULES USED                              **/
/**                                                                        **/
/****************************************************************************/

#include "cdat68k.h"

/****************************************************************************/
/**                                                                        **/
/**                        DEFINITIONS AND MACROS                          **/
/**                                                                        **/
/****************************************************************************/

#define NO_ERR      0
#define ERR_LEVEL   1


/****************************************************************************/
/**                                                                        **/
/**                        TYPEDEFS AND STRUCTURES                         **/
/**                                                                        **/
/****************************************************************************/


/****************************************************************************/
/**                                                                        **/
/**                         EXPORTED VARIABLES                             **/
/**                                                                        **/
/****************************************************************************/

#ifndef _INTERRUPT68K_C_SRC


#endif

/****************************************************************************/
/**                                                                        **/
/**                       EXPORTED FUNCTIONS                               **/
/**                                                                        **/
/****************************************************************************/


/****************************************************************************/
void ConfigInterrupt1(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/


/****************************************************************************/
void ConfigInterrupt2(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/

/****************************************************************************/
void ConfigInterrupt3(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/

/****************************************************************************/
void ConfigInterrupt4(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/


/****************************************************************************/
void ConfigInterrupt5(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/

/****************************************************************************/
void ConfigInterrupt6(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/

/****************************************************************************/
void ConfigInterrupt7(void * isr);
/****************************************************************************/
/*
 Description: Configges interrupt function to corresponding interrupt vector.
 Interrupt should be disable before calling this function.
 Parameters: isr is interrupt function name.
 Returns:  None.
*/

/****************************************************************************/
void enable( void );
/****************************************************************************/
/*
 Description: Enable all interrupts.
 Parameters: None.
 Returns: None.
*/

/****************************************************************************/
void disable( void );
/****************************************************************************/
/*
 Description: disable all interrupt levels 1-6, except level 7.
 Parameters: None.
 Returns: None.
*/


/****************************************************************************/
#endif

/****************************************************************************/
/**                                                                        **/
/**                              EOF                                       **/
/**                                                                        **/
/****************************************************************************/